import usercenterRequest from '@/api/service/usercenter';

// 用户中心 - 获取用户集合
export const getUserInfoListService = (data, loadingFn) => usercenterRequest.retRequest({
  url: '/usercenter/web/user/selectByName',
  type: 'post',
  data,
  loadingFn
});

// 用户中心 - 获取部门集合
export const getDepartmentsService = (data, loadingFn) => usercenterRequest.retRequest({
  url: '/usercenter/web/hrDepartment/getByName',
  type: 'get',
  data,
  loadingFn
});

// 用户中心 - 品类授权集合查询 by 品类等级
export const getCategoryService = (data, loadingFn, target) => usercenterRequest.retRequest({
  url: '/usercenter/web/common/getCategory',
  type: 'post',
  data,
  loadingFn,
  target
});

// 用户中心 - 获取公司集合
export const getCompanysService = (data, loadingFn) => usercenterRequest.retRequest({
  url: '/usercenter/web/hrCompany/getByName',
  type: 'get',
  data,
  loadingFn
});
